package org.uugu.action;

import org.springframework.stereotype.Controller;
import org.uugu.service.AllService;
import org.uugu.util.PageControl;

import com.opensymphony.xwork2.ActionSupport;


@Controller
public class BaseAction extends ActionSupport{
	
	private AllService allService;
	private PageControl pageControl;
	private int page; //当前页面
	private int pageSize;  //页面显示信息条数
	private int startPage = 1; //首页
	private int prePage; //前一页
	private int nextPage; //下一页
	private int endPage = 0;  //尾页
	

	public AllService getAllService() {
		return allService;
	}

	public void setAllService(AllService allService) {
		this.allService = allService;
	}

	public PageControl getPageControl() {
		return pageControl;
	}

	public void setPageControl(PageControl pageControl) {
		this.pageControl = pageControl;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}


	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStartPage() {
		return startPage;
	}

	public void setStartPage(int startPage) {
		this.startPage = startPage;
	}

	public int getPrePage() {
		return prePage;
	}

	public void setPrePage(int prePage) {
		this.prePage = prePage;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public int getEndPage() {
		return endPage;
	}

	public void setEndPage(int endPage) {
		this.endPage = endPage;
	}
}
